/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-18 10:54:33
 * @LastEditTime: 2019-09-18 14:00:40
 * @LastEditors: Please set LastEditors
 */

package com.jp;
import com.jp.single.SingleLinkedList;

public class Main {
    public static void main(String[] args) {

        System.out.println("222");
        demotest();
    }

    static void demotest() {
        List<Integer> list = new LinkedList<>();

        list.add(11); // 11
        list.add(0, 22); // 22 11
        list.add(33);
        list.add(44);
        list.add(55);
        System.out.println(list);
        list.remove(0);
        System.out.println(list);
        list.add(66);
        System.out.println(list);
        list.remove(list.size() - 1);
        System.out.println(list);
    }

    
}